//学生（编号、姓名、性别、所选课程）
class Student {
    int id;
    String name;
    String gender;
    Couse couse;
    Student(int i, String n, String g){
        id=1;
        name=n;
        gender=g;
    }
    void xk(Couse n) {
        couse =n;
    }
    void tk(Couse m){
        couse =m;
    }
    public String toString(){
        return "课程编号:"+ this.couse.id +"\n 课程名称:"+ this.couse.cname +"\n 时间:"+ this.couse.time+"\n 授课教师:"+this.couse.teacher.name;
    }


}